from os.path import join

from browsertests.tools.browsers_updater import Mozilla, MozillaNightly

BROWSERS_BASE_DIR = "/home/buildbot/slave_browsertests/browsers"

CHECK_INTERVAL = 60 * 60 * 12 # 12h

browsers = []

browsers.append(Mozilla(
    base_dir=join(BROWSERS_BASE_DIR, "firefox2"),
    branch_id="fx-2",
    platform="lin",
    version="2.0.0.20",
    url="http://mirror.switch.ch/ftp/mirror/mozilla/firefox/releases/2.0.0.20/linux-i686/en-US/firefox-2.0.0.20.tar.gz",
))

browsers.append(Mozilla(
    base_dir=join(BROWSERS_BASE_DIR, "firefox3"),
    branch_id="fx-3",
    platform="lin",
    version="3.0.6",
    url="http://mirror.switch.ch/ftp/mirror/mozilla/firefox/releases/3.0.6/linux-i686/en-US/firefox-3.0.6.tar.bz2",
))

browsers.append(Mozilla(
    base_dir=join(BROWSERS_BASE_DIR, "firefox31"),
    branch_id="fx-3.1",
    platform="lin",
    version="3.1b2",
    url="http://mirror.switch.ch/ftp/mirror/mozilla/firefox/releases/3.1b2/linux-i686/en-US/firefox-3.1b2.tar.bz2"
))

browsers.append(MozillaNightly(
    base_dir=join(BROWSERS_BASE_DIR, "firefoxtrunk"),
    branch_id="fx-trunk",
    platform="lin",
    url="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-3.2a1pre.en-US.linux-i686.tar.bz2",
    check_interval=CHECK_INTERVAL,
))
